package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.Shipping;

/**
 * 收货地址模块Service层接口
 * Created by qezhhnjy on 2017/10/3-11:43.
 */
public interface IShippingService {

    ServerResponse add(java.lang.Integer userId, Shipping shipping);

    //删除收货地址
    ServerResponse delete(java.lang.Integer userId, java.lang.Integer shippingId);

    ServerResponse update(Integer userId, Shipping shipping);

    ServerResponse<Shipping> select(Integer userId, Integer shippingId);

    ServerResponse<PageInfo<Shipping>> list(Integer userId, Integer pageNum, Integer pageSize);
}
